package com.lysj.food.food.domain;

import com.lysj.admin.utils.annotation.Relation;
import com.lysj.admin.utils.spring.foundation.base.BaseEntity;
import com.lysj.admin.utils.spring.foundation.jpa.RelationType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * @author Created by wtl on 2019-03-25 10:48
 * @description 默认下单的菜品
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "lysj_food_default_food")
public class DefaultFood extends BaseEntity {

    private String storeId; // 门店id
    private String foodId; // 菜品id

    @Transient
    private String foodName; // 菜品名称
    @Transient
    private String guiGe; // 菜品规格
    @Transient
    private BigDecimal sellFee; // 菜品售价

    private Integer count; // 菜品数量

}
